package cn.edu.ctbu.myfirstweb.dao;

import cn.edu.ctbu.myfirstweb.domain.Administrator;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.io.Serializable;

public interface AdministratorRepository extends JpaRepository<Administrator, Long>,
        JpaSpecificationExecutor<TeacherRepository>,
        Serializable {
    Administrator getById(Long id);

    Administrator findByIdAndPassword(Long id, String password);
}
